@echo off
echo 正在停止ce-manager容器...

docker stop ce-manager
docker rm ce-manager

if %ERRORLEVEL% EQU 0 (
    echo ce-manager容器已成功停止
) else (
    echo 停止ce-manager容器时出错，错误代码: %ERRORLEVEL%
)

docker build -t ce-manager:latest -f docker/Dockerfile.manager .
docker run -d --name ce-manager -p 80:80 ce-manager:latest